__author__ = 'banderjumah'
from django.conf.urls import patterns, url
from cars import views

urlpatterns = patterns('',
	url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'Cars/login.html'}),
    url(r'^$', views.index, name='index'),
    url(r'^(?P<idno>\d+)/details/$', views.detail, name='index'),
    url(r'^(?P<idno>\d+)/details/(?P<docId>\d+)$', views.docDetail, name='index'),
    url(r'^(?P<idno>\d+)/edit/$', views.edit, name='edit'),
    url(r'^(?P<idno>\d+)/post/$', views.validate, name='validate'),
    url(r'^add/$', views.add, name='validate'),
    url(r'^post/$', views.validateNew, name='validate'),
    url(r'^(?P<idno>\d+)/addDoc/$', views.addDoc, name='addDoc'),
    url(r'^brands/$', views.brands, name='brands'),
    url(r'^postBrand/$', views.validateNewBrand, name='validate'),
	url(r'^addBrand/$', views.addBrand, name='addBrand'),
    )
